home *** CD-ROM | disk | FTP | other *** search
- property ancestor, pMIAW, pCursor
- global gTableClipboard, gIsRolloverTextOn
-
- on new me, buttonName, castName, theChannel, theStageLoc, theBalloonChannel, theBalloonLoc, descendant
- if objectp(descendant) then
- ancestor = new(script("button with balloon"), buttonName, castName, theChannel, theStageLoc, theBalloonChannel, theBalloonLoc, descendant)
- else
- ancestor = new(script("button with balloon"), buttonName, castName, theChannel, theStageLoc, theBalloonChannel, theBalloonLoc, me)
- end if
- pCursor = [member("point hand", "graph.cst"), member("point hand mask", "graph.cst")]
- return me
- end
-
- on setMIAW me, miaw
- pMIAW = miaw
- return me
- end
-
- on performFunction me
- if checkIfSelected(getTable(pMIAW)) then
- tell the stage
- playSFX(5)
- end tell
- theData = getSelectedData(getTable(pMIAW))
- gTableClipboard = theData
- enable(getPasteButton(pMIAW))
- else
- beep()
- end if
- return me
- end
-
- on enable me
- enable(ancestor)
- set the cursor of sprite the pChannel of me to pCursor
- end
-
- on disable me
- disable(ancestor)
- set the cursor of sprite the pChannel of me to -1
- end
-
- on performRolloverFunction me
- if gIsRolloverTextOn then
- performRolloverFunction(ancestor)
- end if
- return me
- end
-
- on performRolloffFunction me
- if gIsRolloverTextOn then
- performRolloffFunction(ancestor)
- end if
- return me
- end
-